package uo.ri.bussiness.impl.admin;

import java.sql.Connection;
import java.sql.SQLException;

import uo.ri.conf.PersistenceFactory;
import uo.ri.peristence.MecanicosGateway;
import alb.util.jdbc.Jdbc;

public class MechanicBase {
	
	protected MecanicosGateway mecanicosGateway;
	protected Connection connection;
	
	protected void prepareDB() throws SQLException {
		connection = Jdbc.getConnection();
		connection.setAutoCommit(false);
		mecanicosGateway = PersistenceFactory.getMecanicGateway();
		mecanicosGateway.setConnection(connection);		
	}

}
